<#escape x as (x)!> <#include "basenosidebar.ftl"/> <#macro title> ${config.blogTitle} - 文件管理 </#macro> <#macro scripts>
<style type='text/css'>
table#filetable {
	border-collapse: collapse;
}

table#filetable th {
	border: 1px solid;
}

table#filetable td {
	border: 1px solid;
}
</style>
<script src="/scripts/myjs.js" type="text/javascript" charset="utf-8"></script>
</#macro> <#macro main> <#-- File upload -->
<div style="margin-top: 10px;" id="file_upload">
	<form name="fileupload" method="POST" action="/file" ENCTYPE="multipart/form-data">
		文件上传：
		<input name="uploadfile" size="40" type="file" />
		<input name="upload" type="submit" value="开始上传" />
	</form>
</div>

<#-- File list -->
<div style="margin-top: 10px;" id="file_list">
	<table border=0 cellpadding=0 cellspacing=0 id="filetable">
		<tr>
			<th>
				文件名
			</th>
			<th>
				meta标签
			</th>
			<th>
				上传日期
			</th>
			<th>
				大小(Bytes)
			</th>
			<th>
				&nbsp;
			</th>
		</tr>
		<tbody>
			<#list filelist as file>
			<tr>
				<td>
					<a href="javascript:void(0);"><a href="/showimage/${file.fileID}">${file.shortFileName}</a>&nbsp;</a>
				</td>
				<td>
					&nbsp;${file.mimeType}&nbsp;
				</td>
				<td>
					&nbsp;${file.date?datetime}
				</td>
				<td align=right>
					&nbsp;${file.fileSize}
				</td>
				<td>
					<a href="/file?action=delete&id=${file.id}">删除</a>
				</td>
			</tr>
			</#list>
		</tbody>
	</table>
	<script language="JavaScript">
	anole('filetable',1,'#ffffff','#ccccff','#ffccff','#cc99ff');
</script>
	<#-- 分页 --> <#include "pageindicator.html" />
</div>
</#macro> </#escape>
